home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xulapp / nsINativeAppSupport.h next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  154 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsINativeAppSupport.idl
  3.  */
  4.  
  5. #ifndef __gen_nsINativeAppSupport_h__
  6. #define __gen_nsINativeAppSupport_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIXULWindow; /* forward declaration */
  18.  
  19. class nsICmdLineService; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsINativeAppSupport */
  23. #define NS_INATIVEAPPSUPPORT_IID_STR "5fdf8480-1f98-11d4-8077-00600811a9c3"
  24.  
  25. #define NS_INATIVEAPPSUPPORT_IID \
  26.   {0x5fdf8480, 0x1f98, 0x11d4, \
  27.     { 0x80, 0x77, 0x00, 0x60, 0x08, 0x11, 0xa9, 0xc3 }}
  28.  
  29. class NS_NO_VTABLE nsINativeAppSupport : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_INATIVEAPPSUPPORT_IID)
  33.  
  34.   /* boolean start (); */
  35.   NS_IMETHOD Start(PRBool *_retval) = 0;
  36.  
  37.   /* void enable (); */
  38.   NS_IMETHOD Enable(void) = 0;
  39.  
  40.   /* boolean stop (); */
  41.   NS_IMETHOD Stop(PRBool *_retval) = 0;
  42.  
  43.   /* void quit (); */
  44.   NS_IMETHOD Quit(void) = 0;
  45.  
  46.   /* void onLastWindowClosing (); */
  47.   NS_IMETHOD OnLastWindowClosing(void) = 0;
  48.  
  49.   /* void ReOpen (); */
  50.   NS_IMETHOD ReOpen(void) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSINATIVEAPPSUPPORT \
  56.   NS_IMETHOD Start(PRBool *_retval); \
  57.   NS_IMETHOD Enable(void); \
  58.   NS_IMETHOD Stop(PRBool *_retval); \
  59.   NS_IMETHOD Quit(void); \
  60.   NS_IMETHOD OnLastWindowClosing(void); \
  61.   NS_IMETHOD ReOpen(void); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSINATIVEAPPSUPPORT(_to) \
  65.   NS_IMETHOD Start(PRBool *_retval) { return _to Start(_retval); } \
  66.   NS_IMETHOD Enable(void) { return _to Enable(); } \
  67.   NS_IMETHOD Stop(PRBool *_retval) { return _to Stop(_retval); } \
  68.   NS_IMETHOD Quit(void) { return _to Quit(); } \
  69.   NS_IMETHOD OnLastWindowClosing(void) { return _to OnLastWindowClosing(); } \
  70.   NS_IMETHOD ReOpen(void) { return _to ReOpen(); } 
  71.  
  72. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  73. #define NS_FORWARD_SAFE_NSINATIVEAPPSUPPORT(_to) \
  74.   NS_IMETHOD Start(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(_retval); } \
  75.   NS_IMETHOD Enable(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Enable(); } \
  76.   NS_IMETHOD Stop(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(_retval); } \
  77.   NS_IMETHOD Quit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Quit(); } \
  78.   NS_IMETHOD OnLastWindowClosing(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLastWindowClosing(); } \
  79.   NS_IMETHOD ReOpen(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReOpen(); } 
  80.  
  81. #if 0
  82. /* Use the code below as a template for the implementation class for this interface. */
  83.  
  84. /* Header file */
  85. class nsNativeAppSupport : public nsINativeAppSupport
  86. {
  87. public:
  88.   NS_DECL_ISUPPORTS
  89.   NS_DECL_NSINATIVEAPPSUPPORT
  90.  
  91.   nsNativeAppSupport();
  92.  
  93. private:
  94.   ~nsNativeAppSupport();
  95.  
  96. protected:
  97.   /* additional members */
  98. };
  99.  
  100. /* Implementation file */
  101. NS_IMPL_ISUPPORTS1(nsNativeAppSupport, nsINativeAppSupport)
  102.  
  103. nsNativeAppSupport::nsNativeAppSupport()
  104. {
  105.   /* member initializers and constructor code */
  106. }
  107.  
  108. nsNativeAppSupport::~nsNativeAppSupport()
  109. {
  110.   /* destructor code */
  111. }
  112.  
  113. /* boolean start (); */
  114. NS_IMETHODIMP nsNativeAppSupport::Start(PRBool *_retval)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* void enable (); */
  120. NS_IMETHODIMP nsNativeAppSupport::Enable()
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* boolean stop (); */
  126. NS_IMETHODIMP nsNativeAppSupport::Stop(PRBool *_retval)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* void quit (); */
  132. NS_IMETHODIMP nsNativeAppSupport::Quit()
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* void onLastWindowClosing (); */
  138. NS_IMETHODIMP nsNativeAppSupport::OnLastWindowClosing()
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* void ReOpen (); */
  144. NS_IMETHODIMP nsNativeAppSupport::ReOpen()
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* End of implementation class template. */
  150. #endif
  151.  
  152.  
  153. #endif /* __gen_nsINativeAppSupport_h__ */
  154.